package com.echo.fm.content.activity.model;

public enum PayType {
	BYCAR(1, "按车支付"), BYPEOPLE(2, "按人数支付");
	private Integer typeId;
	private String name;

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private PayType(Integer typeId, String name) {
		this.typeId = typeId;
		this.name = name;
	}

	public boolean isPayByCar(Integer typeId) {
		return BYCAR.typeId.equals(typeId);
	}

}
